#include "window.h"
#include <abstractgenerator.h>

Window::Window(AbstractGenerator &gr):GR(gr)
{
    button = new QPushButton("Space");
    textLabel = new QLabel;

    connect(button, SIGNAL(clicked()), this, SLOT(generate()));

    QVBoxLayout *layout = new QVBoxLayout;
    layout -> addWidget(textLabel);
    layout -> addWidget(button);

    setLayout(layout);

    setWindowTitle("Window");
}

void Window::generate()
{
  GR.generate();

}
